<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>vec_set_between</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="LIBIT Documentation"
HREF="index.html"><LINK
REL="UP"
HREF="refmanual.html"><LINK
REL="PREVIOUS"
TITLE="cvec_set"
HREF="man.cvec-set.html"><LINK
REL="NEXT"
TITLE="ivec_set_between"
HREF="man.ivec-set-between.html"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>LIBIT Documentation</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="man.cvec-set.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="man.ivec-set-between.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="MAN.VEC-SET-BETWEEN"
></A
>vec_set_between</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN18674"
></A
><H2
>Name</H2
>vec_set_between&nbsp;--&nbsp;Set some vector components to a value</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN18677"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><P
></P
><A
NAME="AEN18678"
></A
><PRE
CLASS="FUNCSYNOPSISINFO"
>#include &lt;it/vec.h&gt;
      </PRE
><P
><CODE
><CODE
CLASS="FUNCDEF"
>void vec_set_between</CODE
>( vec v, size_t i1, size_t i2, double val
        );</CODE
></P
><P
></P
></DIV
></DIV
><H2
>DESCRIPTION</H2
><P
> The <CODE
CLASS="FUNCTION"
>vec_set_between</CODE
> function sets all the elements of the vector <CODE
CLASS="PARAMETER"
>v</CODE
> whose position stands in the index interval [<CODE
CLASS="PARAMETER"
>i1</CODE
>,<CODE
CLASS="PARAMETER"
>i2</CODE
>] to the value <CODE
CLASS="PARAMETER"
>val</CODE
>.  </P
><H2
>RETURN VALUE</H2
><P
>    pointer to updated vector
   </P
><H2
>EXAMPLE</H2
><PRE
CLASS="PROGRAMLISTING"
>&#13;#include &lt;vec.h&gt;

...

vec v = vec_new_string("1 2 3 4 5");   /* vector [1 2 3 4 5] */
vec_set_between(v,3,end,10);           /* v = [1 2 3 10 10]  */
vec_delete(v);                         /* free the vector    */</PRE
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="man.cvec-set.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="man.ivec-set-between.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>cvec_set</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="refmanual.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>ivec_set_between</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>